//
//  OrderNavBar.m
//  DiningCar-Business
//
//  Created by 吕晶 on 2020/4/9.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import "OrderNavBar.h"

@interface OrderNavBar ()

@property (nonatomic, strong) UILabel *titleLab;

@end

@implementation OrderNavBar

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        self.titleLab = [[UILabel alloc] initWithFrame:CGRectMake(15, NaviHeight - 8 - 22, ScreenW - 30, 22)];
        self.titleLab.textColor = HexColor(0x2B2C44);
        self.titleLab.font = BoldFontOfSize(20);
        [self addSubview:self.titleLab];
    }
    return self;
}

-(void)setTitleStr:(NSString *)titleStr {
    _titleStr = titleStr;
    self.titleLab.text = titleStr;
}

@end
